package com.app.model.bean;

import java.io.Serializable;

/**
 * 订单信息实体
 */

public class Order implements Serializable {

    // 订单ID
    private String id;
    // 约会对象
    private User user;
    // 约会类型
    private int orderType;
    // 约会订单状态
    private int orderStatus;
    // 订单金额
    private double price;
    // 支付方式
    private int payType;
    // 消费码，订单支付成功后，后台返回给用户一个消费码，用户凭借此消费码见面约会
    private String checkCode;
    // 订单创建时间
    private long createTime;
    // 订单支付时间
    private long payTime;
    // 申请退款时间
    private long refundTime;
    // 约会时间
    private long dateTime;
    // 关闭时间
    private long closeTime;
    // 评价时间
    private long finishTime;
    // 备注
    private String mark;
    // 约一次
    public static final int TYPE_ONE_TIME = 0;
    // 约一晚
    public static final int TYPE_ONE_NIGHT = 1;
    // 待支付（用户下单成功，但是没有进行支付，或者支付失败）
    public static final int STATUS_NOT_PAY = 0;
    // 待消费（用户下单成功，支付成功，还没有消费）
    public static final int STATUS_NOT_DATE = 1;
    // 待确认（用户下单成功，支付成功，等待对方确认）
    public static final int STATUS_NOT_CONFIRM = 6;
    // 待评价（用户下单成功，支付成功，消费成功，尚未评价）
    public static final int STATUS_NOT_COMMENT = 2;
    // 退款中（用户下单成功，支付成功，但是申请退款了）
    public static final int STATUS_REFUNDING = 3;
    // 已关闭（用户下单成功，但是取消支付/支付成功之后申请退款，退款成功/对方已拒绝）
    public static final int STATUS_CLOSED = 4;
    // 已完成（用户下单成功，支付成功，消费成功，完成评价）
    public static final int STATUS_FINISHED = 5;
    // 所有状态
    public static final int STATUS_ALL = -1;
    // 余额支付
    public static final int PAY_TYPE_WALLET = 0;
    // 支付宝支付
    public static final int PAY_TYPE_ALIPAY = 1;
    // 微信支付
    public static final int PAY_TYPE_WECHATPAY = 2;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getPayTime() {
        return payTime;
    }

    public void setPayTime(long payTime) {
        this.payTime = payTime;
    }

    public long getRefundTime() {
        return refundTime;
    }

    public void setRefundTime(long refundTime) {
        this.refundTime = refundTime;
    }

    public long getDateTime() {
        return dateTime;
    }

    public void setDateTime(long dateTime) {
        this.dateTime = dateTime;
    }

    public long getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(long closeTime) {
        this.closeTime = closeTime;
    }

    public long getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(long finishTime) {
        this.finishTime = finishTime;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }
}
